package com.example.administrator.liveapp.adapter;

import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.administrator.liveapp.R;

/**
 * Created by Administrator on 2017/6/9 0009.
 */

public class SecondaryCommentsAdapter extends RecyclerView.Adapter<SecondaryCommentsAdapter.ViewHolder> {
    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.secondary_comments_item,parent,false);
        ViewHolder viewHolder = new ViewHolder(view);
        return viewHolder;
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {
        holder.reply_comments.setText("这是回复你的评论");
    }

    @Override
    public int getItemCount() {
        return 2;
    }

    public class ViewHolder extends RecyclerView.ViewHolder {
        public TextView reply_comments;
        public ViewHolder(View itemView) {
            super(itemView);
            reply_comments = (TextView) itemView.findViewById(R.id.reply_comments);
        }
    }
}
